﻿<UserControl x:Class="Pellared.SalaryBook.Views.AddSalaryView"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:properties="clr-namespace:Pellared.SalaryBook.Properties" xmlns:views="clr-namespace:Pellared.SalaryBook.Views"
             xmlns:ViewModels="clr-namespace:Pellared.SalaryBook.ViewModels"
             mc:Ignorable="d" 
			 d:DesignHeight="178.4" d:DesignWidth="281.6" d:DataContext="{d:DesignInstance ViewModels:AddSalaryViewModel}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <views:EditableSalaryView Grid.Row="0" DataContext="{Binding EditableSalaryViewModel}" />

        <Button Grid.Row="1"
                Content="{x:Static properties:Resources.AddText}" Height="24" Width="75" Margin="0 10" HorizontalAlignment="Right"
                Command="{Binding AddCommand}"/>
    </Grid>
</UserControl>
